import request from '@/utils/request'

// 1. 登录
export const loginApi = ({ username, password }) => {
  return request.post('/auth/login', {
    username,
    password
  })
}

// 2.首页布局
export const getUser = () => {
  return request.get('/auth/currentUser')
}
